﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Jobs.Inf.Entity
{
    /// <summary>
    /// 招募单
    /// </summary>
    [Table("RecruitSheet")]
    public class RecruitSheet
    {
        [Key]
        [Column("Id", TypeName = "int")]
        [DatabaseGenerated(System.ComponentModel.DataAnnotations.DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 代理人用户名
        /// </summary>
        [Column("Recruiter",TypeName="nvarchar")]
        [Required]
        [StringLength(200)]
        public string Recruiter { get; set; }

        /// <summary>
        /// 商家Id
        /// </summary>
        [Column("AdvertiserId",TypeName="int")]
        [Required]
        public int AdvertiserId { get; set; }

        /// <summary>
        /// 招募类型分类
        /// </summary>
        [Column("RecruitType",TypeName="int")]
        [Required]
        public int RecruitType { get; set; }

        /// <summary>
        /// 子类
        /// </summary>
        [Column("RecruitSubject", TypeName = "int")]
        [Required]
        public int RecruitSubject { get; set; }

        /// <summary>
        /// 到期时间
        /// </summary>
        [Column("Expire", TypeName = "datetime")]
        [Required]
        public DateTime Expire { get; set; }

        /// <summary>
        /// 发布日期
        /// </summary>
        [Column("PublishDate",TypeName="datetime")]
        [Required]
        public DateTime PublishDate { get; set; }
    }
}
